<?php
/**
 * The template for displaying Category Archive pages.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0 
 */

get_header(); ?>

		<div id="container">
			<div id="content" role="main">
	
				<div class = "entry-list">
					<div class = "etlh">
					<div class = "etrh">
					<div class="et-header">
					<span class = "cat-title left">
					<h2>
						<div class="current-place">
							<a><?php _e('您的位置：');?></a>
								<a href="<?php echo get_settings('home'); ?>/" title="<?php _e('Home');?>"><?php _e('Home');?></a>&nbsp;&gt;
								<?php $categorys = get_the_category();
											$category = $categorys[0];?>
								<a href="<?php get_category_link($category->cat_id);?>">
								<?php echo $category->cat_name;?></a>							
						</div>
					</h2>
					</span>
					</div><!--et-header-->
					</div><!--etrh-->
					  </div><!--etlh-->
				
				<div class="rec-entry" >
				<?php /* Display navigation to next/previous pages when applicable */ ?>
				<?php if ( $wp_query->max_num_pages > 1 ) : ?>
					<div id="nav-above" class="navigation">
						<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'xiufanr' ) ); ?></div>
						<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'xiufanr' ) ); ?></div>
					</div><!-- #nav-above -->
				<?php endif; ?>
				<?php
					/*$category_description = category_description();
					if ( ! empty( $category_description ) )
						echo '<div class="archive-meta">' . $category_description . '</div>';*/

				/* Run the loop for the category page to output the posts.
				 * If you want to overload this in a child theme then include a file
				 * called loop-category.php and that will be used instead.
				 */
				get_template_part( 'loop', 'category' );
				?>
				<?php /* Display navigation to next/previous pages when applicable */ ?>
				<?php if (  $wp_query->max_num_pages > 1 ) : ?>
								<div id="nav-below" class="navigation">
									<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'xiufanr' ) ); ?></div>
									<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'xiufanr' ) ); ?></div>
								</div><!-- #nav-below -->
				<?php endif; ?>
				</div><!--rec-entry-->	
						<div class = "bg-bottom">
							<div class = "bg-bottom-r"></div>
					  </div>
			</div><!--entry-list-->
			</div><!-- #content -->
		</div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
